\(\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx\) [515]
Optimal result
Integrand size = 19, antiderivative size = 44 \[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=-\frac {b \cos ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d}
\]
[Out]
-1/3*b*cos(d*x+c)^3/d+a*sin(d*x+c)/d-1/3*a*sin(d*x+c)^3/d
Rubi [A] (verified)
Time = 0.04 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00, number
of steps used = 3, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3567, 2713}
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=-\frac {a \sin ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {b \cos ^3(c+d x)}{3 d}
\]
[In]
Int[Cos[c + d*x]^3*(a + b*Tan[c + d*x]),x]
[Out]
-1/3*(b*Cos[c + d*x]^3)/d + (a*Sin[c + d*x])/d - (a*Sin[c + d*x]^3)/(3*d)
Rule 2713
Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]
Rule 3567
Int[((d_.)*sec[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*tan[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[b*((d*Sec[
e + f*x])^m/(f*m)), x] + Dist[a, Int[(d*Sec[e + f*x])^m, x], x] /; FreeQ[{a, b, d, e, f, m}, x] && (IntegerQ[2
*m] || NeQ[a^2 + b^2, 0])
Rubi steps \begin{align*}
\text {integral}& = -\frac {b \cos ^3(c+d x)}{3 d}+a \int \cos ^3(c+d x) \, dx \\ & = -\frac {b \cos ^3(c+d x)}{3 d}-\frac {a \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d} \\ & = -\frac {b \cos ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d} \\
\end{align*}
Mathematica [A] (verified)
Time = 0.01 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=-\frac {b \cos ^3(c+d x)}{3 d}+\frac {a \sin (c+d x)}{d}-\frac {a \sin ^3(c+d x)}{3 d}
\]
[In]
Integrate[Cos[c + d*x]^3*(a + b*Tan[c + d*x]),x]
[Out]
-1/3*(b*Cos[c + d*x]^3)/d + (a*Sin[c + d*x])/d - (a*Sin[c + d*x]^3)/(3*d)
Maple [A] (verified)
Time = 2.89 (sec) , antiderivative size = 36, normalized size of antiderivative = 0.82
| | |
method | result | size |
| | |
derivativedivides |
\(\frac {-\frac {b \left (\cos ^{3}\left (d x +c \right )\right )}{3}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) |
\(36\) |
default |
\(\frac {-\frac {b \left (\cos ^{3}\left (d x +c \right )\right )}{3}+\frac {a \left (2+\cos ^{2}\left (d x +c \right )\right ) \sin \left (d x +c \right )}{3}}{d}\) |
\(36\) |
risch |
\(-\frac {b \cos \left (d x +c \right )}{4 d}+\frac {3 a \sin \left (d x +c \right )}{4 d}-\frac {b \cos \left (3 d x +3 c \right )}{12 d}+\frac {a \sin \left (3 d x +3 c \right )}{12 d}\) |
\(56\) |
| | |
|
|
|
[In]
int(cos(d*x+c)^3*(a+b*tan(d*x+c)),x,method=_RETURNVERBOSE)
[Out]
1/d*(-1/3*b*cos(d*x+c)^3+1/3*a*(2+cos(d*x+c)^2)*sin(d*x+c))
Fricas [A] (verification not implemented)
none
Time = 0.25 (sec) , antiderivative size = 38, normalized size of antiderivative = 0.86
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=-\frac {b \cos \left (d x + c\right )^{3} - {\left (a \cos \left (d x + c\right )^{2} + 2 \, a\right )} \sin \left (d x + c\right )}{3 \, d}
\]
[In]
integrate(cos(d*x+c)^3*(a+b*tan(d*x+c)),x, algorithm="fricas")
[Out]
-1/3*(b*cos(d*x + c)^3 - (a*cos(d*x + c)^2 + 2*a)*sin(d*x + c))/d
Sympy [F]
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=\int \left (a + b \tan {\left (c + d x \right )}\right ) \cos ^{3}{\left (c + d x \right )}\, dx
\]
[In]
integrate(cos(d*x+c)**3*(a+b*tan(d*x+c)),x)
[Out]
Integral((a + b*tan(c + d*x))*cos(c + d*x)**3, x)
Maxima [A] (verification not implemented)
none
Time = 0.31 (sec) , antiderivative size = 35, normalized size of antiderivative = 0.80
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=-\frac {b \cos \left (d x + c\right )^{3} + {\left (\sin \left (d x + c\right )^{3} - 3 \, \sin \left (d x + c\right )\right )} a}{3 \, d}
\]
[In]
integrate(cos(d*x+c)^3*(a+b*tan(d*x+c)),x, algorithm="maxima")
[Out]
-1/3*(b*cos(d*x + c)^3 + (sin(d*x + c)^3 - 3*sin(d*x + c))*a)/d
Giac [B] (verification not implemented)
Leaf count of result is larger than twice the leaf count of optimal. 11886 vs. \(2 (40) = 80\).
Time = 2.42 (sec) , antiderivative size = 11886, normalized size of antiderivative = 270.14
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=\text {Too large to display}
\]
[In]
integrate(cos(d*x+c)^3*(a+b*tan(d*x+c)),x, algorithm="giac")
[Out]
1/96*(3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2
*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^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2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2
- tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6*tan(1/2*c)^4 + 9*pi*b*sgn(tan(1/2*d*x)^2*
tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x
)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d
*x)^4*tan(1/2*c)^6 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - t
an(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2
+ tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4*tan(1/2*c)^6 + 6*pi*b*tan(1/2*d*x)^6*tan(1/2*c)^6 - 6*b*a
rctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(
1/2*c) + 1))*tan(1/2*d*x)^6*tan(1/2*c)^6 - 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1
)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^6*tan(1/2*c)^6 + 6*b*arctan((tan(1/2
*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*t
an(1/2*d*x)^6*tan(1/2*c)^6 + 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x
)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^6*tan(1/2*c)^6 - 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2
*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6*tan(1
/2*c)^4 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2
- 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6*tan(1/2*c)^4 - 18*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - tan(1/2*d*x)^2
- 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x)^6*tan(1/2*c)^4 - 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/
2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4*tan(
1/2*c)^6 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^
2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4*tan(1/2*c)^6 - 18*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - tan(1/2*d*x)^2
- 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x)^4*tan(1/2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 18*pi*b*tan(1/2*d*x)^6*tan
(1/2*c)^4 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - t
an(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^6*tan(1/2*c)^4 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*
x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^6*tan(1/2*c)^4 +
18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x)
- tan(1/2*c) - 1))*tan(1/2*d*x)^6*tan(1/2*c)^4 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2
*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^6*tan(1/2*c)^4 - 192*a*tan(1/
2*d*x)^6*tan(1/2*c)^5 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2
- tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x
)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^2*tan(1/2*c)^6 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2
- 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c
)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^2*tan(1/2
*c)^6 + 18*pi*b*tan(1/2*d*x)^4*tan(1/2*c)^6 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c)
+ 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^4*tan(1/2*c)^6 - 18*b*arctan((ta
n(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) +
1))*tan(1/2*d*x)^4*tan(1/2*c)^6 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1
/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^4*tan(1/2*c)^6 + 18*b*arctan((tan(1/2*d*x)*t
an(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*
d*x)^4*tan(1/2*c)^6 - 192*a*tan(1/2*d*x)^5*tan(1/2*c)^6 - 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d
*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6*tan(1/2*c)^2 + 9*pi*b*sg
n(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) -
1)*tan(1/2*d*x)^6*tan(1/2*c)^2 - 18*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - tan(1/2*d*x)^2 - 4*tan(1/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1/2*
d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(
1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6 + 3*pi*b*sgn(tan(1/
2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(ta
n(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*
tan(1/2*d*x)^6 + 27*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(
1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 +
tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4*tan(1/2*c)^2 + 27*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*t
an(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 -
2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4*tan(1/2*c)^2
+ 18*pi*b*tan(1/2*d*x)^6*tan(1/2*c)^2 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)
/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^6*tan(1/2*c)^2 - 18*b*arctan((tan(1/2
*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*t
an(1/2*d*x)^6*tan(1/2*c)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*
x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^6*tan(1/2*c)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/
2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^
6*tan(1/2*c)^2 - 128*a*tan(1/2*d*x)^6*tan(1/2*c)^3 + 27*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^
2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d
*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^2*tan(1/2*c)^4 + 27*pi*b*s
gn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) -
1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d
*x) - 1)*tan(1/2*d*x)^2*tan(1/2*c)^4 + 54*pi*b*tan(1/2*d*x)^4*tan(1/2*c)^4 - 54*b*arctan((tan(1/2*d*x)*tan(1/2
*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^4
*tan(1/2*c)^4 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c)
+ tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^4*tan(1/2*c)^4 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/
2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^4*tan(1/2*c)^
4 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d
*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^4*tan(1/2*c)^4 + 576*a*tan(1/2*d*x)^5*tan(1/2*c)^4 + 576*a*tan(1/2*d*x)^4*
tan(1/2*c)^5 + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2
*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan
(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*c)^6 + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1
/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan
(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*c)^6 + 18*pi*b*tan(1/2*d*x)^2*tan(1/2*
c)^6 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/
2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^6 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) +
tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^6 + 18*b*
arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan
(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^6 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) -
1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^6 - 128*a*tan(1/2*d*x
)^3*tan(1/2*c)^6 - 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan
(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6 + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1
/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^6 - 6*pi*b*sgn(tan(1/2*d*x)^2*tan(1
/2*c)^2 - tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*d*x)^6 - 27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)^2 + ta
n(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*c)^6 + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/
2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*c)^6 - 6*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*
c)^2 - tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*c)^6 - 96*b*tan(1/2*d*x)^2*tan(1
/2*c)^6 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2
+ 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*
c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*
c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/
2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^4 + 6*pi*b*tan(1/2*d*x)^6 - 6*b*arct
an((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2
*c) + 1))*tan(1/2*d*x)^6 - 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*
tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^6 + 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*
x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^6 + 6*b*arctan((t
an(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) -
1))*tan(1/2*d*x)^6 - 192*a*tan(1/2*d*x)^6*tan(1/2*c) + 27*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*
x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/
2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^2*tan(1/2*c)^2 + 27*pi*
b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c)
- 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/
2*d*x) - 1)*tan(1/2*d*x)^2*tan(1/2*c)^2 + 54*pi*b*tan(1/2*d*x)^4*tan(1/2*c)^2 - 54*b*arctan((tan(1/2*d*x)*tan(
1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x
)^4*tan(1/2*c)^2 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2
*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^4*tan(1/2*c)^2 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan
(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^4*tan(1/2*
c)^2 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/
2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^4*tan(1/2*c)^2 - 576*a*tan(1/2*d*x)^5*tan(1/2*c)^2 - 2688*a*tan(1/2*d*x
)^4*tan(1/2*c)^3 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan
(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 +
tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*c)^4 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*t
an(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)
*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*c)^4 + 54*pi*b*tan(1/2*d*x)^2*tan(
1/2*c)^4 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - ta
n(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^4 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x
) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^4 + 5
4*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) -
tan(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^4 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*
c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^4 - 2688*a*tan(1/
2*d*x)^3*tan(1/2*c)^4 - 576*a*tan(1/2*d*x)^2*tan(1/2*c)^5 + 6*pi*b*tan(1/2*c)^6 - 6*b*arctan((tan(1/2*d*x)*tan
(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*c)
^6 - 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d
*x) - tan(1/2*c) + 1))*tan(1/2*c)^6 + 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(ta
n(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*c)^6 + 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - t
an(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*c)^6 - 192*a*
tan(1/2*d*x)*tan(1/2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1/2*c)^4 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2
- tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*c)^4 - 18*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 -
tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1)*tan(1/2*c)^4 + 1824*b*tan(1/2*d*x)^2*tan(1/2*c
)^4 + 384*b*tan(1/2*d*x)*tan(1/2*c)^5 + 32*b*tan(1/2*c)^6 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2
*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan
(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*d*x)^2 + 9*pi*b*sgn(tan(1
/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(t
an(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)
*tan(1/2*d*x)^2 + 18*pi*b*tan(1/2*d*x)^4 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) +
1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^4 - 18*b*arctan((tan(1/2*d*x)*tan(1
/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)
^4 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*
d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^4 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)
/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^4 + 192*a*tan(1/2*d*x)^5 + 576*a*tan(
1/2*d*x)^4*tan(1/2*c) + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1/2*d*x)^2
- tan(1/2*c)^2 + 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x
)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1)*tan(1/2*c)^2 + 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x
)^2*tan(1/2*c) + tan(1/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2
*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1)*tan(1/2*c)^2 + 54*pi*b*tan(1/2*d*x)^2
*tan(1/2*c)^2 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c)
- tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^2 - 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/
2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^2*tan(1/2*c)^
2 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d
*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^2 + 54*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan
(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^2*tan(1/2*c)^2 + 2688*a*t
an(1/2*d*x)^3*tan(1/2*c)^2 + 2688*a*tan(1/2*d*x)^2*tan(1/2*c)^3 + 18*pi*b*tan(1/2*c)^4 - 18*b*arctan((tan(1/2*
d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*ta
n(1/2*c)^4 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) +
tan(1/2*d*x) - tan(1/2*c) + 1))*tan(1/2*c)^4 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c
) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*c)^4 + 18*b*arctan((tan(1/2*d*x)*tan
(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*c)
^4 + 576*a*tan(1/2*d*x)*tan(1/2*c)^4 + 192*a*tan(1/2*c)^5 - 9*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2
*d*x)*tan(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*x) - 1) + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)^2*tan(1/2*c) + tan(1
/2*d*x)^2 - tan(1/2*c)^2 - 2*tan(1/2*c) - 1)*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2*tan(1/2*d*x)*tan(1/2*c)^2 - t
an(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1) + 18*pi*b*tan(1/2*d*x)^2 - 18*b*arctan((tan(1/2*d*x)*tan(1/
2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*d*x)^
2 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d
*x) - tan(1/2*c) + 1))*tan(1/2*d*x)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/
(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*d*x)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*
c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*d*x)^2
+ 128*a*tan(1/2*d*x)^3 - 576*a*tan(1/2*d*x)^2*tan(1/2*c) + 18*pi*b*tan(1/2*c)^2 - 18*b*arctan((tan(1/2*d*x)*ta
n(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1))*tan(1/2*c
)^2 - 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2
*d*x) - tan(1/2*c) + 1))*tan(1/2*c)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/
(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))*tan(1/2*c)^2 + 18*b*arctan((tan(1/2*d*x)*tan(1/2*c)
- tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1))*tan(1/2*c)^2 - 57
6*a*tan(1/2*d*x)*tan(1/2*c)^2 + 128*a*tan(1/2*c)^3 - 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 + 2*tan(1/2*d*x)*t
an(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 + 2*tan(1/2*d*x) - 1) + 3*pi*b*sgn(tan(1/2*d*x)^2*tan(1/2*c)^2 - 2
*tan(1/2*d*x)*tan(1/2*c)^2 - tan(1/2*d*x)^2 + tan(1/2*c)^2 - 2*tan(1/2*d*x) - 1) - 6*pi*b*sgn(tan(1/2*d*x)^2*t
an(1/2*c)^2 - tan(1/2*d*x)^2 - 4*tan(1/2*d*x)*tan(1/2*c) - tan(1/2*c)^2 + 1) + 96*b*tan(1/2*d*x)^2 + 384*b*tan
(1/2*d*x)*tan(1/2*c) + 96*b*tan(1/2*c)^2 + 6*pi*b - 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1
/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) + tan(1/2*c) + 1)) - 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) -
tan(1/2*d*x) + tan(1/2*c) + 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x) - tan(1/2*c) + 1)) + 6*b*arctan((tan(1/
2*d*x)*tan(1/2*c) + tan(1/2*d*x) + tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1))
+ 6*b*arctan((tan(1/2*d*x)*tan(1/2*c) - tan(1/2*d*x) - tan(1/2*c) - 1)/(tan(1/2*d*x)*tan(1/2*c) + tan(1/2*d*x)
+ tan(1/2*c) - 1)) + 192*a*tan(1/2*d*x) + 192*a*tan(1/2*c) - 32*b)/(d*tan(1/2*d*x)^6*tan(1/2*c)^6 + 3*d*tan(1
/2*d*x)^6*tan(1/2*c)^4 + 3*d*tan(1/2*d*x)^4*tan(1/2*c)^6 + 3*d*tan(1/2*d*x)^6*tan(1/2*c)^2 + 9*d*tan(1/2*d*x)^
4*tan(1/2*c)^4 + 3*d*tan(1/2*d*x)^2*tan(1/2*c)^6 + d*tan(1/2*d*x)^6 + 9*d*tan(1/2*d*x)^4*tan(1/2*c)^2 + 9*d*ta
n(1/2*d*x)^2*tan(1/2*c)^4 + d*tan(1/2*c)^6 + 3*d*tan(1/2*d*x)^4 + 9*d*tan(1/2*d*x)^2*tan(1/2*c)^2 + 3*d*tan(1/
2*c)^4 + 3*d*tan(1/2*d*x)^2 + 3*d*tan(1/2*c)^2 + d)
Mupad [B] (verification not implemented)
Time = 4.65 (sec) , antiderivative size = 47, normalized size of antiderivative = 1.07
\[
\int \cos ^3(c+d x) (a+b \tan (c+d x)) \, dx=\frac {2\,a\,\sin \left (c+d\,x\right )}{3\,d}-\frac {b\,{\cos \left (c+d\,x\right )}^3}{3\,d}+\frac {a\,{\cos \left (c+d\,x\right )}^2\,\sin \left (c+d\,x\right )}{3\,d}
\]
[In]
int(cos(c + d*x)^3*(a + b*tan(c + d*x)),x)
[Out]
(2*a*sin(c + d*x))/(3*d) - (b*cos(c + d*x)^3)/(3*d) + (a*cos(c + d*x)^2*sin(c + d*x))/(3*d)